package model.savers;

import java.util.LinkedList;
import java.util.List;

import model.readers.MetroReader;

public class MetroSaversRegistry {
	private static List<FileFormat> formats = new LinkedList<FileFormat>();
	public static class FileFormat {
		public String shortFileFormatDescription;
		public String formatFileNameExtension;
		public MetroSaver saver;
		FileFormat(String shortFormatDescription, String fileExtension, MetroSaver saver){
			this.shortFileFormatDescription = shortFormatDescription;
			this.formatFileNameExtension = fileExtension;
			this.saver = saver;	
		}
	}
	public static void addSaver(String shortFormatDescription, String fileExtension, MetroSaver saver) {
		formats.add(new FileFormat(shortFormatDescription, fileExtension, saver));
	}
	
	public static List<FileFormat> getFormats() {
		return formats;
	}
}
